#ifndef SETTING_H
#define SETTING_H
#include <QWidget>
#include "login.h"

namespace Ui {
class setting;
}
class login;
class setting : public QWidget
{
    Q_OBJECT

public:
    explicit setting(QWidget *parent = 0);
    ~setting();
    void readcfgAutoLogin();
    void savecfgAutoLogin();
    bool isAdmin(QString userName);
    static QString downloadPath;
    void changePath(QString filename);
    void getEmail();
    void changeEmail();
private slots:

    void on_pushButton_regist_clicked();

    void on_pushButton_modify_clicked();


    void on_pushButton_clicked();

    void on_pushButton_path_clicked();

private:
    Ui::setting *ui;

    //用于退出界面

    QString userName;

    bool isChangePath;

    QString email;
};

#endif // SETTING_H
